package com.frame.work.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.frame.work.entity.TblMessage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author 消息日志信息
 */
@DS("slave_2")
@Component
public interface TblMessageMapper extends BaseMapper<TblMessage> {
    /**
     * 查询用户日志通过自定义时间
     *
     * @param pageNum
     * @param pageSize
     * @param messageType
     * @param userId
     * @return
     */
    List<TblMessage> selectByTime(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize, @Param("messageType") String messageType, @Param("userId") String userId);
}
